<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        for(var i=1;i<=3;i++){
            console.log(i)
        }

        var a=17;
        if(a<18){
            console.log("去网吧")
        }
        else{
            console.log("回宿舍")
        }
    </script>
</body>
</html>